Local-field effects and nanostructuring for controlling optical properties and enabling novel optical phenomena