How does variation in total and relative abundance contribute to gradients of species diversity?