Flexible multi-body dynamics of Cosserat rods with IGA formulation