formula for magnetic sand separator