Effect of secondary electrons on the yield of electron-stimulated desorption of neutral atoms under differently localized core-level excitations in a substrate