Computing the spectrum and pseudospectrum of infinite-volume operators from local patches