Improving energy management of electrically driven air compressors through real-time scheduling techniques