Graceful connections in dynamical systems – an approach to gait transitions in robotics