Environmental filtering and taxonomic relatedness underlie the species richness–evenness relationship