Advanced technologies ensure the energy revolution towards smart grids and renewables