Description of the Nonlinear and Collective Behavior of Charged-Particle Beams by means of a Nonlinear Schroedinger Equation