what are the stages in detergent production