Solid state cathode materials for secondary magnesium-ion batteries that are compatible with magnesium metal anodes in water-free electrolyte