Statistics for Optimization of dye-sensitized solid-state and electrochemical photovoltaic cells by Ti02 film modification