Aerosol processing of halide perovskites