Composition and diameter modulation of magnetic nanowire arrays fabricated by a novel approach