Surface analysis using X-ray electron spectrometer of microelectronic devices