Solvent-Independent Electrode Potentials of Solids Undergoing Insertion Electrochemical Reactions: Part I. Theory