How It’s Made: A General Theory of the Labor Implications of Technological Change