A comparative first-principles study of tetragonal TiAl and Ti4Nb3Al9 intermetallic compounds