Scientists have created self-healing fabrics that also protect from harmful chemicals