Imaging the Earth using time-domain surface-wave measurements: Evaluation and correction of the finite-frequency phase shift