Experimental and theoretical studies of oxygen ordering in quenched and slow-cooled YBa2Cu3O7-δ