Structural, magnetic, and electronic properties of Ti2CrAl