In situ thermal residual stress evolution in ultrathin ZnO and Ag films studied by synchrotron x-ray diffraction