Diffractive optics for fabric fault detection