Pseudo-three dimensional model of oxygen ordering in YBa2Cu3O6+δ