Identification of hybrid systems: a tutorial