Thermal expansion and velocity of ultrasonic waves in single phase YBa2Cu3O7−x