Modeling Of Collection And Transmission Losses Of Offshore Wind Farms For Optimization Purposes