Evaluation of the robustness of a novel NIR-based technique to measure the residual moisture in freeze-dried products