New precision method for automatic quality control of raw materials in the soap industry