Change in dominance determines herbivore effects on plant biodiversity