Stability of a fiber-optic magnetometer