Time-of-flight measurement in ultrasound transducer by means of wavelet networks