War and State Formation in Ancient China and Early Modern Europe