Negative electron energy loss and second-harmonic emission of nonlinear nanoparticles.