Firm value and investment in R&D