Investment incentives in endogenously growing economies