Parallel-incidence-type waveguide-mode sensor with spectral-readout setup