Decoupling pH Dependence of Flat Band Potential in Aqueous Dye-Sensitized Electrodes