Model predictive control of vehicle charging stations in grid-connected microgrids