The effects of litigation on mergers and acquisitions