Reduction of Ba2YCu3O7 and Y2Cu2O5 by H2