Discontinuous stabilization of nonlinear systems: Quantized and switching controls