Nonlinear theory of the Weibel instability