The Gauss map of surfaces in $\mathbf{R}^n$