Modelling refraction of waves over tidal channels