Dynamic Stability Analysis of a Tidal Power Generation System Connected to an Onshore Distribution System