Near-field studies of surface plasmon generation: Optical and terahertz studies