Optimal Turbine Allocation for Offshore and Onshore Wind Farms