The effect of thermal treatment on the structure, optical and electrical properties of amorphous titanium nitride thin films