Fabrication of nanowire-based electrodes for supercapacitors