Cooperation under Democracy and Authoritarian Regimes