Retention of volatiles in spray drying and freeze-drying