Optimized organometal halide perovskite solar cell fabrication through control of nanoparticle crystal patterning