Downscaling the environmental associations and spatial patterns of species richness.