Details of Second-Order Partial Derivatives of Rigid-Body Inverse Dynamics