Institutional determinants of military spending