Proton-neutron interaction near closed shells