Asymptotic tracking of periodic trajectories for a simple mechanical system subject to nonsmooth impacts