Computing Spectral Properties of Infinite-Dimensional Operators