Filtration model of high gradient magnetic filters with granular matrix