Stabilization of the layered crystal structure of LiNiO2 by Co-substitution