Postdeposition treatments of TiNx Part I: effects of annealing on the structure of nitrogen-rich films