Torrefaction of corncob to produce charcoal under nitrogen and carbon dioxide atmospheres.