The systematic design methodology of a tidal turbine connected to the electrical grid