SmartGrids and distributed generation: the future electricity networks of the European Union