Nonlinear control of robotic fish