An empirical analysis of firm process and product patenting