Perovskite battery built-in electric field