Producing power where the river meets the sea