Spin reorientation and structural relaxation of atomic layers: pushing the limits of accuracy.