The effect of the boundary layer on the wake of a horizontal axis wind turbine