A well-balanced spectral volume scheme with the wetting–drying property for the shallow-water equations