Ducted wind turbine optimization