Towards a theory of horizontal mergers