War as a Social-ecological Response to Climate Change in Ancient China