An Introduction to Piecewise Smooth Dynamics