The extractable power from a channel linking a bay to the open ocean