https://school2019.abinit.org/images/lectures/abischool2019_magnetism_lecture.pdf