Determining the speed of sound in curved bones