Planting long-lived trees in a warming climate: theory shows the importance of stage-dependent climatic tolerance