Green's theorem in seismic imaging across the scales