Equivalence results when firms compete in prices/quantities and innovation effort