Analytic formula for chemically induced magnetic polarization by S–T±1 mixing in a strong magnetic field