Text this: Model Predictive Control-Based Energy Management System for Cooperative Optimization of Grid-Connected Microgrids