Nonlinear metal–dielectric nanoantennas for light switching and routing