Measuring flexibility of computer integrated manufacturing systems