Theory of solutions in the energy representation. II. Functional for the chemical potential | Synapse