First-principles study of rare gas incorporation in titanium nitride