The mechanics of shoeing gaited horses