Optimal Energy Management Framework For Microgrids Considering Large-Scale Of Renewable Energy Sources Integration