Method and apparatus for characterizing a medium using ultrasound measurements