The effects of R&D tax credits on patenting and innovations