Optimization and functionalization of anodized titania nanotubes for redox supercapacitor