What political party went up against the Democrats in the election of 1840?