C–H bond formation at the graphite surface studied with core level spectroscopy