Free Energy and Self-Interacting Particles