Flexibility Measurement in Production Systems