Image segmentation and 3D reconstruction for improved prediction of the sublimation rate during freeze drying