Switching of magnetization by nonlinear resonance studied in single nanoparticles