Deconvoluting the XPS spectra for nitrogen-doped chars: An analysis from first principles