Imperfect competition, functional forms, and the size and distribution of research benefits