Control of under-actuated mechanical systems subject to smooth impacts