Electrical and optical properties of porous nanocrystalline TiO2 films