Origin and development of residual stresses in the NiNiO system: in-situ studies at high temperature by X-ray diffraction