New Technologies for Sustainable Energy in the Smart City: the WET Theory