Controllable Template-Assisted Electrodeposition of Single- and Multi-Walled Nanotube Arrays for Electrochemical Energy Storage