Accurate effective pair potentials for polymer solutions