Text this: AI-Driven Energy Management Systems for Microgrids: Optimizing Renewable Energy Integration and Load Balancing