what material or object that produces magnetic field which are attracted to a certain metal or material