generic kernel implementation of gaussian charge distribution