Theory of ion chemical potentials in heterogeneous electrolyte environments | Synapse