Transnational democracy, legitimacy and the European Union