Freeze-drying: from empiricism to predictability. The significance of glass transitions.