High pressure solid state chemistry of C-N-H and Ti-N systems