Acceleration and balance in trotting dogs