X-ray photoelectron and Auger electron diffraction study of diamond and graphite surfaces