A fast algorithm for convolution integrals with space and time variant kernels