which device can by used to determine the polarity of unmarked magnet