Multibody dynamic modeling of the behavior of flexible instruments used in cervical cancer brachytherapy