Use of auxiliary substances before, during or after dyeing or printing