Accommodation of non-stoichiometry in TiN1-x and ZrN1-x