Materials stability of organometal halides for solar cell applications