Optimal and strategic timing of mergers and acquisitions motivated by synergies and risk diversification