Systematic study of niobium thermal treatments for superconducting radio frequency cavities employing x-ray photoelectron spectroscopy