Morphologically induced stability on an underwater legged robot with a deformable body