A first-principles study of the stability, electronic structure, and optical properties of halide double perovskite Rb2Sn1-xTexI6 for solar cell applications.