what years of terms did andrew johnson serve?