Text this: Motor synergy and energy efficiency emerge in whole-body locomotion learning