Enhanced optical linearity and nonlinearity of Nd:YAG crystal embedded with Ag nanoparticles by prior Zn ion implantation