The impact of academic patenting on the rate, quality, and direction of (public) research output