Automatic determination of ultrasound velocities in planar materials