Hierarchy of nonlinear models of the hydrodynamics of long surface waves