Ab initio calculation of structural, electronic, and optical properties of TlxGa1-xAs ternary alloys