In-line monitoring of thermal degradation of PHA during melt-processing by Near-Infrared spectroscopy.