Dye-surfactant interactions in thermosol dyeing