Statistical mechanics of chemical equilibria and intramolecular structures of nonrigid molecules in condensed phases | Synapse