Surface Reconstruction Strategy Improve the All-inorganic CsPbIBr2 based Perovskite Solar Cells and Photodetectors Performance