what are the two ends or poles of an magnet