Monte Carlo simulations and integral equation theory for the structure of telechelic polymers