Monitoring and control of crystallization processes using on-line spectroscopic methods