Multiscale morphology design of hybrid halide perovskites through a polymeric template