Dynamic Modeling and Grid Interaction of a Tidal and River Generator