Painlevé II, anharmonic oscillators, and degenerate orthogonal polynomials