Rechargeable Mg-Na and Mg-K hybrid batteries based on a low-defect Co3[Co(CN)6]2 nanocube cathode.