Preparation, texture and electrochemical properties of TiO2 films with highly ordered mesoporosity and controlled crystallinity