Where are the poles of a magnet situated?