Urban Energy Hubs and Microgrids: Smart Energy Planning for Cities