Diastereoselective synthesis of chiral aminophenolate magnesium complexes and their application in the stereoselective polymerization of rac-lactide and rac-β-butyrolactone.