NIR spectroscopy as a process analytical technology (PAT) tool for on-line and real-time monitoring of an extraction process