Piecewise-smooth dynamical systems: Theory and Applications