Chemical recycling of textiles