The adaptation of a reflex response to the ongoing phase of locomotion in fish