rare earth magnet manufacturing process