Stable single-mode erbium fiber-grating laser for digital communication