Synthesis and phase behavior of end-functionalized associating polymers