Western researchers are turning textile waste into materials to enrich soil and using AI to sort donations