How sticklebacks learn to avoid dangerous feeding patches