Nonlinear theory of a hot-wire anemometer