The supports of measures associated with orthogonal polynomials and the spectra of the related self-adjoint operators