In situ spectroscopic ellipsometry to monitor the process of TiNx thin films deposited by reactive sputtering