Text this: An ab initio study of the electronic structure and optical properties of CdS1-xTex alloys