Structure transformations in YBa2Cu3O6+δ caused by oxygen ordering