Single- and Multi-level Network Sparsification by Algebraic Distance