The Extended Jacobian Elliptic Function Expansion Method and Its Applications in Weakly Nonlinear Wave Equations