Engineering halide perovskite nanoparticles using reverse micelle synthesis for enhanced stability, uniformity and use in optoelectronic devices