Wind farm stability analysis in the presence of variable-speed generators