Clariant agrees to sell textiles, paper and emulsions units