Perovskite phase heterojunction solar cells