Obtaining scattering kernels using invariant imbedding