Nature of the acid-dyeing process