Text this: Ba-induced phase segregation and band gap reduction in mixed-halide inorganic perovskite solar cells