Synthesis of chitin and chitosan stereoisomers by thermostable α-glucan phosphorylase-catalyzed enzymatic polymerization of α-D-glucosamine 1-phosphate.