Site-selective oxygen isotope effect in optimally doped YBa2Cu3O6 + x