Dynamical observers for hybrid systems: Theory and Application to an Automotive Control Problem