what was the year thomas jefferson became the 3rd president of the united states?