Crystallization of sol-gel and mesoporous anatase titania films studied by THz spectroscopy