Flexible Multibody Dynamics: Efficient Formulations with Applications