From Smart Grids to Smart Energy Networks