how magnetic filters work