On the synthesis of dynamics and control for complex multibody systems