Chitosan pyrolysis and adsorption properties of chitosan and its carbonizate.