X-ray residual stress measurement in TiN, ZrN and HfN films using the Seemann-Bohlin method