Input and output additionality of R&D subsidies