Energy Efficient Microgrid Management using Model Predictive Control