Electronic structure, mechanical and optical properties of TiAl3 (L12 & D022) via first-principles calculations