Study sheds light on ancient horse migrations, climate change