Poly(ester-ether-ester) block copolymers as biomaterials