Smart real-time scheduling of generating units in an electricity market considering environmental aspects and physical constraints of generators