Real-time temperature monitoring in pharmaceutical freeze-drying