Numerical and physical modelling of rapidly varying flow over weir-like obstacles in rivers and floodplains