Joint Cationic and Anionic Redox Chemistry for Advanced Mg Batteries.