Period-doubling and Neimark–Sacker bifurcations of plant–herbivore models