Study on nonlinear refractive properties of KDP and DKDP crystals