What led to the unprecedented electoral crisis following the 1800 election? How was it eventually resolved?