Supervision of community based microgrids: An economic model predictive control approach