Purification of the precursor of bacterial cellulose