Self-Propagating High-Temperature Synthesis of Diamond-Containing Function-Gradient Materials with a Ceramic Matrix Based on TiB2-TiN and Ti5Si3-TiN