Correlation of morphology and device performance in inorganic–organic TiO2–polythiophene hybrid solid-state solar cells