Joint waveform inversion with the separated upgoing and downgoing wavefields of VSP data