The control of inorganic nanotube morphology using an applied potential