Free Energy of a Nonuniform System. II. Thermodynamic Basis | Synapse