The measurement of labour content: a general approach