Partial derivatives of synthetic seismograms for a laterally heterogeneous Earth model