Surface Enhanced Raman Scattering on Regular Arrays of Gold Nanostructures: Impact of Long-Range Interactions and the Surrounding Medium