Synthesis and post-polymerisation modification of an epoxy-functional polycarbonate