International institutions and credible commitment of non-democracies