Measuring the social return to R&D