A cross-national analysis of militarization and inequality