Multimarket competition and alliance formation