Biodegradable functional polyesters and polycarbonates from glycidyl derivatives and cyclic anhydrides or carbon dioxides