Mode Decomposition Method for Investigating the Nonlinear Dynamics of a Multimode Beam