Potassium nickel hexacyanoferrate as a high-voltage cathode material for nonaqueous magnesium-ion batteries