Double-edged sword effect of independent innovations and foreign cooperation: evidence from China