How mergers affect innovation: Theory and evidence