How a wind farm generates electricity