Magnetic and Optical Properties of Co Nanowire Arrays