Application of perovskite batteries