On the mechanism of autocatalysis in carbohydrate synthesis from formaldehide