An ultrasonic study of superconducting and non-superconducting GdBa2Cu3O7-x