Calibration of the transient magnetic field for rare-earth nuclei in iron: Application to g-factors of high spin states in 152, 154Sm