Simulation of locomotion in the horse : principles and applications