Relative intensities in X-ray photoelectron spectra