who was running for president against john quincy adams?