R&D competition versus R&D cooperation in oligopolistic markets with evolving structure☆