Evolutionary discovery of self-stabilized dynamic gaits for a soft underwater legged robot