A robust nonsmooth generalized- α scheme for flexible systems with impacts