How to find the poles of a circular magnet?