Stochastic modelling of process scheduling for reduced rework cost and scrap