Measuring the acoustic wave velocity and sample thickness using an ultrasonic transducer array