How Tidal Energy Is Produced