Corrections to Migdal's theorem for spectral functions: A cumulant treatment of the time-dependent Green's function.