Quantized stabilization of nonlinear affine systems