Geometric and electronic structure of Ti2AlX (x=v, Nb, or Ta)