Spillovers, product innovation and R&D cooperation: a theoretical model