Neutron single-particle states in r-process nuclei near closed shells