Uniaxial magnetic anisotropy in nanostructured Co/Cu(001): from surface ripples to nanowires