Use of magnetic filtration in waste water treatment