how does a magnetic ore seperater work