Chemical and morphological stability of Perovskite and organic solar cells