How extreme polarization undermines the advantages that democracies have when formulating foreign policy