The causes and determination of safety stocks in upstream supply chains for mass production of customized products