Dynamic R&D Competition, Research Line Diversity, and Intellectual Property Rights