Forward scattering of resonant radiation as a function of applied magnetic field — theoretical study of the hyperfine lines of the sodium doublet