Thermodynamics And Kinetics Of Mg Intercalation For Multivalent Cathode Applications