Transformation of nitrogen structures in carbonization of model compounds determined by XPS