Computer Simulations Study of the Phase Behavior of Polymer and Surfactant Solutions: from Flexible to Rigid Chains