Scale-dependent relationships between tree species richness and ecosystem function in forests