Transitions between three swimming gaits in Paramecium escape