X-ray absorption near-edge structure of hexagonal ternary phases in sputter-deposited TiAlN films