Understanding the dynamic crystallization of glucose through Raman and terahertz spectroscopy