High performance all-inorganic CsPbI2Br perovskite solar cells with low energy losses