Filtering variational quantum algorithms for combinatorial optimization