Co-Simulation Of Non-Smooth Mechanical Systems