Ultrasound study on YBa2Cu3O7−δ and GdBa2Cu3O7−δ single crystals