Smart Grid for the Smart City