Least-squares fitting of marine seismic refraction data