Dye-sensitized solar cells based on anatase-and brookite-TiO2: enhancing performance through optimization of phase composition, morphology and device architecture