First-principles study of VPO4O as a cathode material for rechargeable Mg batteries.