Migration velocity analysis and waveform inversion with subsurface offset extension