Modelling tidal energy extraction in a depth-averaged coastal domain