Closed-loop wind farm control