Energy Analysis and Decoupling in Three-Dimensional Impacts of Multibody Systems