Complex Three-Dimensional Magnetic Ordering in Segmented Nanowire Arrays.