Friction properties of composites of the system TiN−AlN. I. Effect of structure and phase composition of friction and wear of materials of the system TiN−AlN