Essays on the economics of patent rights