Convergence in variation for the multidimensional generalized sampling series and applications to smoothing for digital image processing