Electronic Relaxation Effects in Core Level Spectra of Solids