Predictive model for the detection of out-of-plane defects formed during textile-composite manufacture