Empowering the Grid: A Comprehensive Review of Artificial Intelligence Techniques in Smart Grids | Synapse