Defect-induced nonlinearity in 2D nanoparticles