Tracking control of mechanical systems with a unilateral position constraint inducing dissipative impacts