Text this: A Comparative Mechanistic Study on the Intercalation Reactions of Mg<sup>2+</sup> and Li<sup>+</sup> Ions into (Mg<sub>0.5</sub>Ni<sub>0.5</sub>)<sub>3</sub>(PO<sub>4</sub>)<sub>2</sub>