Consistent seismic event location and subsurface parameters inversion through slope tomography: a variable-projection approach