Text this: Frequency shift caused by nonuniform field and boundary relaxation in magnetic resonance and comagnetometers.