The controls on the thermal evolution of continental mountain ranges