Assessing the surface electrical conductivity by comparison of X-ray photoelectron spectra under gas and in vacuum environments.