How AI and IoT Are Making the Grid Smarter