A switchable single- and dual-wavelength erbium fiber ring laser in single-longitudinal-mode operation