Influence of state margins on election results