Legality and legitimacy of exporting democracy