Simulations of the electrical system of a grid connected marine current energy converter