Synthesis of nanocrystalline layered manganese oxides by the electrochemical reduction of AMnO4 (A = K, Li)