Measurement of ultrasonic velocity using phase-slope and cross-correlation methods