Endogenous Productivity of Demand-Induced R&D: Evidence from Pharmaceuticals