Optimizing the configuration of tidal turbines in storm surge barriers