AI for Smart Grid Management and Optimization