understanding the love hate relationship of halide perovskites with the sun