Magnetic properties of Co nanopillar arrays prepared from alumina templates