which device can be used to determine the polarity of an unmarked magnet?