Application of magnetic rods for fixation in orthopedic treatments