Scaling laws for function diversity and specialization across socioeconomic and biological complex systems Hyperlink