3-D ERLS based dynamic formulation for flexible-link robots: theoretical and numerical comparison between the Finite Element Method and the Component Mode Synthesis approaches