Influence of solvent quality on effective pair potentials between polymers in solution.