Consequences of plant-herbivore coevolution on the dynamics and functioning of ecosystems