A Unified Approach for Dynamic Analysis of Tensegrity Structures with Arbitrary Rigid Bodies and Rigid Bars