An event-driven method to simulate Filippov systems with accurate computing of sliding motions | Synapse