Orthogonal Polynomials and Gaussian Quadrature with Nonclassical Weight Functions