Text this: FDAS : a knowledge-based framework for analysis of defects in woven textile structures