Assessment of different X-ray stress measuring techniques for thin titanium nitride coatings