The WIM method for refraction statics