Phase stabilities of self-organized nc-TiN/a-Si3N4 nanocomposites and of Ti1 − xSixNy solid solutions studied by ab initio calculation and thermodynamic modeling