Simulation to Real: Learning Energy-Efficient Slithering Gaits for a Snake-Like Robot