Transforming the electrical grid: the role of AI in advancing smart, sustainable, and secure energy systems (Energy Informatics)