In-process quality control for manufacturing