Quality‐improving R&D and merger policy in a differentiated duopoly: Cournot and Bertrand equilibria