Effects of magnetic field on the perturbation between the B 1Π and c 3Σ+ states of NaK