How taxonomic diversity, community structure, and sample size