U2Ni2Sn and the origin of magnetic anisotropy in uranium compounds