High-capacity nanostructured manganese dioxide cathode for rechargeable magnesium ion batteries