temporary magnet formed by electricity