Electric Loads as Real-Time tasks: an application of Real-Time Physical Systems