training statistical process control quality knowledge sorting cost rework cost punishment cost