Trotting robots offer insights into animal gait transitions