Electrocoagulation for magnetic seeding of colloidal particles