Titania nanotubes for solar energy and catalysis