Perovskite battery stability