Dynamic evolution of economic networks under the influence of mergers and divestitures