Temperature and Microstructures Dependent Thermal Shock Resistance Models for Ultra-High-Temperature Ceramics Considering Effect of Residual Stress