what happens when metal such as nickel, iron, and cobalt where place near magnet?