Performance and Stability Enhancement of Dye-Sensitized and Perovskite Solar Cells by Al Doping of TiO2