Effects of oxygen deficiency on the optical spectra of YBa2Cu3O7−x