Magnetic separator and permanent magnet