Irreversible investment and R&D spillovers in a dynamic duopoly