Degradation of thin films of YBa2Cu3O7 by annealing in air and in vacuum