Electronic and optical properties of mixed perovskites CsSnxPb(1−x)I3