Understanding the returns to R&D