How machine learning is revolutionizing microgrid management and smart energy solutions