Gamma-limits of convolution functionals