On-line monitoring of extraction of coldrine by near-infrared spectrum