Salamandra robotica II transitions from walking to swimming