Multi-symplectic spectral discretizations for the Zakharov–Kuznetsov and shallow water equations