Optimal lot-sizing, quality improvement and inspection errors for multistage production systems · Study