Harnessing the Potential of Artificial Intelligence in Advancing Renewable Energy Grids