Critical lines and phase coexistence of polymer solutions: A quantitative comparison between Wertheim’s thermodynamic perturbation theory and computer simulations