Structural parameters controlling the performance of organized mesoporous TiO2 films in dye sensitized solar cells