Development of an Amphibious Snake-like Robot and Its Gaits on Ground and in Water