The evolution of overexploitation and mutualism in plant–herbivore–predator interactions and its impact on population dynamics