Combustion Synthesis and Thermal Stress Analysis of TiC–Ni Functionally Graded Materials