DYNAMICS OF MECHANICAL RODS SYSTEMS WITH VARIABLE LENGTH LINKS APPLICABLE TO ENDO-, EXOSKELETS AND ANTHROPOMORPHIC ROBOTS ON 2D-SPACE AND 3D-SPACE