The characterization of titanium nitride by x-ray photoelectron spectroscopy and Rutherford backscattering