Lithium and sodium insertion in ternary chromium oxides