Establishing quantitative in-line analysis of multiple solid-state transformations during dehydration.