Time-of-flight measurement of ultrasonic pulse echoes using wavelet networks