Text this: Model predictive control for on–off charging of electrical vehicles in smart grids