the magnetism of a piece of magnetized iron can be weakened by