Data-driven discovery of Green's functions