Generalized Spectral Coarsening