On the structural origin of the single-ion magnetic anisotropy in LuFeO3