Optimizing the Energy Offset between Dye and Hole-Transporting Material in Solid-State Dye-Sensitized Solar Cells