The Influence of Thermal Residual Stresses on Mechanical Properties of Silicon Nitride-Based Composites