Intermediate phase-enhanced Ostwald ripening for the elimination of phase segregation in efficient inorganic CsPbIBr2 perovskite solar cells