Conductance quantization in magnetic nanowires electrodeposited in nanopores