A Hybrid Integration Scheme for Nonsmooth Mechanical Systems