A variational formulation of the free energy of mixed quantum-classical systems: Coupling classical and electronic density functional theories. | Synapse