X‐ray photoelectron and carbon Kα emission measurements and calculations of O‐, CO‐, N‐, and S‐containing substances