Residual Stress Gradient in Ceramic Coatings for Thermal Engine Applications