Halide perovskites for high-efficiency and durable photovoltaics