Voltage stability analysis and control of wind farms connected to weak grids