Perovskite battery thin film structure