Essays on patenting, R & D and technological innovation