Inventive activity, diffusion, and the stages of economic growth