Paschen-back effect on the 3S-4D two-photon transition in sodium vapor