Electrochemistry in Mesoporous Electrodes: Influence of Nanoporosity on the Chemical Potential of the Electrolyte in Dye Sensitized Solar Cells