Segmented block copolyesters using click chemistry