Invention growth, and welfare