Multidimensional linear functional estimation in sparse Gaussian models and robust estimation of the mean