Lagrangian finite element method for solitary wave propagation