cycle of magnetization