Optimizing Hydrogel Electrolytes for Dye-sensitized Solar Cells