Finite element simulation of deep bed filtration