Uniform Convergence Series to Solve Nonlinear Partial Differential Equations: Application to Beam Dynamics