Shape phase transitions and isotopic shift in barium isotopes within covariant density functional theory