Selecting gaits for economical locomotion of legged robots | Synapse