A Study on the Optimization of Dye-Sensitized Solar Cells