Predator–prey dynamics in environments rich and poor in nutrients