Two-step method for preparing all-inorganic CsPbBr3 perovskite film and its photoelectric detection application