Phenotypic plasticity influences the eco-evolutionary dynamics of a predator–prey system