Ambient-Processed Halide Perovskites For Photovoltaic And Optoelectronic Devices