X-ray photoelectron spectroscopy of hafnium nitride