Legislative coalitions and electoral equilibrium