Titanium nitride films with high oxygen concentration