On the spectra of infinite-dimensional Jacobi matrices