Oxygen superstructures in semiconducting RBa2Cu3O6+x