Determination of three-dimensional velocity structure from observations of refracted body waves