where the Tr refers to the trace over all the microstates of both ions and protons inside the system. The electrochemical potential of a proton is the difference in free energy of two systems: one in which the colloidal particle has N protonated sites and the other N + 1 protonated sites,