In-line characterization of polymer deformation in melt and solid phase processing☆