Planar Perovskite Solar Cells: Local Structure and Stability Issues