Orthogonal polynomial eigenfunctions of second-order partial differerential equations