Climate and historical stand dynamics in the tropical pine forests of northern Thailand