Evaluating the use of diversity indices to distinguish between microbial communities with different traits.