Synchronization and non-smooth dynamical systems