Dual wavelength filtering properties and applications of the π-phase-shifted sampled fiber Bragg gratings