Measuring the effect of M&A on patenting quantity and quality