Nonsmooth Mechanics: Models, Dynamics and Control