On the modeling of the dye-sensitized solar cell