Applications of TiN thin films in silicon device technology