how does a iron ore magnetic separator works