Infrared study of the superconducting phase transition in YBa2Cu3O7-x