Spectral Sparsification of Random-Walk Matrix Polynomials