Democracy, markets and sustainable development: the European Union as an example