Advanced Topics in Nonsmooth Dynamics