Optical properties of waveguide-coupled nanowires for sub-wavelength detection in microspectrometer applications