Multiscale expansion and integrability of dispersive wave equations