Multi-scale modelling of freeze-drying for optimisation and quality control of pharmaceutical products