g Factors in heavy nuclei and the proton-neutron interaction