Magnetization of semiconductor quantum dots