Phase diagrams of lithium transition metal oxides: investigations from first principles