Theoretical analysis of line shapes in resonant Auger electron spectra