Annealing effects on the properties of TiN thin films