Perovskite battery preparation process