The thermochemistry of polymer solutions and compositions in the phase separation region