Physico-chemical aspects of dye partition technique for the determination of functional groups in detergents and high polymers