A backwards error analysis approach for simulation and control of nonsmooth mechanical systems | IEEE Conference Publication | IEEE Xplore