On the stability analysis of a delayed two-stage Cournot model with R&D spillovers