$Q$ -Switched Erbium-Doped Fiber Laser Based on Silver Nanoparticles as a Saturable Absorber