Energy efficient microgrid management using Model Predictive Control