who was elected 16th president of the us in 1860 and served through his 1865 assassination?