Configuration interaction in charge exchange spectra of tin and xenon