Simulation of drying and ?ooding in a tidal embayment using the level set method