Reaction of CuO with hydrogen studied by using synchrotron-based x-ray diffraction