Statistics for Stability of the SnO2/MgO dye-sensitized photoelectrochemical solar cell