The role of PbI<sub>2</sub> in CH<sub>3</sub>NH<sub>3</sub>PbI<sub>3</sub> perovskite stability, solar cell parameters and device degradation