Design tools for the optimal exploitation of tidal-stream renewable energy