The influence of cooling rate on the residual stresses in the Ni-NiO system