Ion-gated transistors based on porous and compact TiO2films: Effect of Li ions in the gating medium