The Dynamics of Finite-Difference Models of the Shallow-Water Equations