Polydisperse systems: Statistical thermodynamics, with applications to several models including hard and permeable spheres | Synapse