A framework to support automation in manufacturing through the study of process variability