Multielectron excitations in x-ray absorption spectra of Rb and Kr