Anodically grown functional oxide nanotubes and applications