Mergers and acquisitions: determinants of gains to acquirers and targets