How climate change impacted the collapse of the Ming dynasty