Gaussian quadrature for non-Gaussian distributions