Statistics for Generation of inhomogeneous photocurrent in solid-state TiO2|dye|CuI cells and effect of ligands attached to surfactant on morphology of CuI films