Application of multivariate image analysis to thermal images for on-line monitoring of the freeze-drying process