Surface/interface analysis and optical properties of RF sputter-deposited nanocrystalline titanium nitride thin films