Measurement of the factor content of foreign trade with traded intermediate goods