Chemical and magnetic ordering derived from ab initio simulations: the case of ß’-LiFeO2