The mechanism of the ring-opening polymerization of lactide and glycolide