Automatic Endpoint Detection for a Fluidized-Bed Dryer by using In-Line NIRS