Lattice cluster theory of associating polymers. IV. Phase behavior of telechelic polymer solutions.