A linear programming based heuristic algorithm for charge and discharge scheduling of electric vehicles in a building energy management system