Magnetization, demagnetization device