RES and their integration in Smart Grids