Nonlinear generation of whistler waves by an ion beam