Temperature dependence of the structure of YBa2Cu3O7: The role of the axial oxygens