Competition, R&D and innovation: testing the inverted-U in a simultaneous system