Anisotropic surface enhanced Raman scattering in nanoparticle and nanowire arrays