Alternative antipredator defences and genetic polymorphism in a pelagic predator–prey system