Oxygen isotope effect in the superconductor YBa2Cu3O7-x