Cognitive ecology of surprise in predator–prey interactions