Analysis of networks where discontinuities and nonsmooth dynamics collide: understanding synchrony