Synthesis of porous wires from directed assemblies of nanospheres.