Magnetic and optical properties of cobalt nanowires fabricated in polycarbonate ion-track templates