Alloy-induced phase transition and enhanced photovoltaic performance: the case of Cs3Bi2I9−xBrx perovskite solar cells