Effects of polymer molecular weight on curcumin amorphous solid dispersion; at-line monitoring system based on attenuated total reflectance mid-infrared and near-infrared spectroscopy