Dipole-forbidden transitions induced by the gradient of optical near fields