Synthesis of functional polyesters derived from serine