Economic Model Predictive Control for the Demand Side Management of Residential Microgrids