The high-temperature reactions of YBa2Cu3O7−δ