A hybrid observer for the driveline dynamics