Universal wind turbine working in grid-connected and island operating modes