Public Goods, Public Gains: Calculating the Social Benefits of Public R&D