A Unified Approach for the Nonlinear Dynamics of Rods and Shells Using an Exact Conserving Integration Algorithm