how to make permanent magnet from iron