Waveguide cores containing silicon nanocrystals as active spectral filters for silicon-based photonics