Is it really 100% cotton? Smartphone-sized device can analyze fabrics