Optical properties of ordered plasmonic nanostructures in linear and nonlinear regimes