Adaptive numerical integration of dynamical contact problems