Effect of the pH on the microstructure and magnetic properties of electrodeposited cobalt nanowires