Genetic and environmental analysis of the endurance aptitude in horses