Automated measurement of ultrasound velocity and attenuation