Model predictive control for resilient operation of hybrid microgrids