Cell refinement of CsPbBr3 perovskite nanoparticles and thin films