Fingerprints of sp1-carbon hybridization in the core-level spectra of surface-grown materials