Graph sparsification using effective resistances