Addressing the mid-point of polymer chains for multiple functionalization purposes through sequential thiol–epoxy ‘click’ and esterification reactions