The chemistry of pulping and bleaching