Mechanisms of nonstoichiometry in HfN1−x