A comparative study on the impact of different glymes and their derivatives as electrolyte solvents for graphite co-intercalation electrodes in lithium-ion and sodium-ion batteries.