Characterization of hemicelluloses in process streams in thermomechanical and chemi-thermomechanical pulp mills