Stable and Efficient Dye-Sensitized Solar Cells and Supercapacitors Developed Using Ionic-Liquid-Doped Biopolymer Electrolytes