Reversible photostructural change in oxygen-deficientYBa2Cu3Oy