Optical Spectra of Core Electrons in Metals with an Incomplete Shell. I. Analytic Features