Kinetic modeling of dissolution and crystallization of slurries with attenuated total reflectance UV-visible absorbance and near-infrared reflectance measurements.