A novel theoretical approach to the conformational equilibrium of short-chain molecules in condensed phases