Switchable dual-wavelength Q-switched and mode-locked fiber lasers using a large-angle tilted fiber grating.