Technology and Economics of Smart Grids and Sustainable Energy