Chemical stability of TiN, TiAlN and AlN layers in aggressive SO2 environments