A mathematical model for the sequestering of chemical contaminants by magnetic particles