Residual stresses in a ceramic-metal composite