Spectral Methods for Uncertainty Quantification