Smart Power Systems: Grid Modernization Using AI and IoT-Based Applications