Synthesis and optimization of the recovery route for residual products under uncertain product demand