who was the us president after andrew johnson?