Molecular thermodynamic model for associated polymers