X-ray photoelectron spectroscopy for resistance-capacitance measurements of surface structures