Investigating And Optimizing Interfacial Properties Of Electrode Materials For Lithium-Ion And Sodium-Ion Batteries