magnet iron relation