What were the factors that contributed to John Adams losing the presidency in the election of 1800?