Smooth Pulse Generation by a Q-Switched Erbium-Doped Fiber Laser