How to magnetize metal (making a permanent magnet)