Wars, Alliances, and Military Expenditures