Method of producing glocosamine derivatives