Hybrid systems and the design of embedded controllers for automotive engine management