Microstructure evolution and wear mechanism of in situ prepared Ti–TiN cermet layers at high temperature