How to measure the returns on R&D spending