Thermodynamic Modeling of Hydrocarbon Mixtures with Application to Polymer Phase Behavior and Asphaltene Precipitation