Studies of optical absorption and electron transport in nanocrystalline TiO2 electrodes